// pages/fenlei/fenlei.ts
Page({

  data: {
    curNav: 1,
    curIndex: 0,
    cateItems:[
      {
        cate_id:1,
        cate_name: "新品",
        ishaveChild: true,
        children:[{
          child_id:1,
          name:"BZDZLCX系列",
          image:"/image/p6.png"
        },
         {
           child_id:2,
           name:"BZDZLLY系列",
           image:"/image/p2.png"

         },
         {
           child_id:3,
           name:"BZDZLLY系列",
           image:"/image/p5.png"
         },
         {
           child_id:"4",
           name:"CGLZJ系列",
           image:"/image/p2.png"
         }
      ]
      },
      {
        cate_id:2,
        cate_name:"高端定制",
        ishaveChild: true,
        children:[{
          child_id:1,
          name:"CGLZJ系列",
          image:"/image/p3.png"
        },
        {
          child_id:2,
          name:"CHLBS系列",
          image:"/image/p4.png"
        },
        {
          child_id:3,
          name:"BZDZLCX系列",
          image:"/image/p1.png"
        }
      ]
      },
      {
        cate_id:3,
        cate_name:"展厅现货",
        ishaveChild: true,
        children:[{
          child_id:1,
          name:"BZDZLLY系列",
          image:"/image/p2.png"
        },
        {
          child_id:2,
          name:"BZDZLLY系列",
          image:"/image/p2.png"
        },
        {
          child_id:3,
          name:"BZDZLLY系列",
          image:"/image/p2.png"
        }
    ]
      },
      {
        cate_id:4,
        cate_name:"客厅",
        ishaveChild: true,
        children:[{
          child_id:1,
          name:"CHLBS系列",
          image:"/image/p4.png"
        },
        {
          child_id:2,
          name:"CHLBS系列",
          image:"/image/p4.png"
        }
      ]
      },
      {
        cate_id:5,
        cate_name:"卧室",
        ishaveChild: true,
        children:[{
          child_id:1,
          name:"CGLXY系列",
          image:"/image/p5.png"
        }]
      },
      {
        cate_id:6,
        cate_name:"书房",
        ishaveChild: true,
        children:[{
          child_id:1,
          name:"CGLXY系列",
          image:"/image/p5.png"
        }]
      },
      {
        cate_id:7,
        cate_name:"餐厅",
        ishaveChild: true,
        children:[{
          child_id:1,
          name:"CGLXY系列",
          image:"/image/p5.png"
        }]
      }
    ]
  },

  switchRightTab: function(e){
    let id = e.target.dataset.id,
    index = parseInt(e.target.dataset.index);
    this.setData({
      curNav: id,
      curIndex: index
    })
  }
  

})